import request from "@/utils/requestJava.js"

export default {
	/**
	 * 部门获取部门中的人
	 * @param {Object} data
	 */
	async getUserList(data) {
		return await request({
			url: "/api/user/list/",
			data: data,
			method: 'GET',
			contentType: 2,
			channel: 2
		})
	},

	/**
	 * 获取客户形式
	 * @param {Object} data
	 */
	async getClientFormList(data) {
		return await request({
			url: "/api/client/getCustomerFormList",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},
	
	/**
	 * 添加客户信息
	 * @param {Object} data
	 */
	async customerAdd(data) {
		return await request({
			url: "/api/customer/customerAdd",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},
	
	/**
	 * 更新客户信息
	 * @param {Object} data
	 */
	async customerUpdate(data) {
		return await request({
			url: "/api/customer/customerUpdate",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},
}